# -*- coding: UTF-8 -*-
import logging
from hellopylons.lib.base import BaseController, render
from hellopylons.lib.tmpvalues import tmpValues
from pylons.controllers.util import abort, redirect_to, redirect
from pylons import session, tmpl_context as c

class DemoController(BaseController):
    def show(self):
        return render('/Demo.mako')
        
    def push(self):
        objTmp = tmpValues()
        objTmp.pushsession('value', 'this is value')
        objTmp.pushsession('name', 'demo')
        objTmp.pushsession('test', 'test')
        c.demo = 'demo'
        redirect_to(controller='Demo', action='show')